/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Serializacao;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

/**
 *
 * @author Bush
 */
public class serializacaoArquivo {

    public serializacaoArquivo() {
    }

    public String lerDocumento(File arquivo) throws FileNotFoundException {
        Scanner scan = new Scanner(arquivo);
        String documento = "";
        while (scan.hasNextLine()) {
            documento += scan.nextLine()+"\n";
        }
        return documento;
    }
}
